#include "pageLib.h"
#include "pageLibPrecessor.h"
#include "splitTool.h"
#include "productDict.h"
#include "inicpp.hpp"

int main()
{
    inicpp::IniManager ini("../config.ini");
    SplitTool* splitTool = SplitTool::getInstance();

    DictProducer dpCn(splitTool, &ini);
    DictProducer dpEn(splitTool, &ini);
    dpCn.buildCnDict();//创建词频词典和索引词典
    dpEn.buildEnDict();

    PageLib pl(&ini);
    pl.analyze();//创建网页库和网页位置库

    PageLibPrecessor plp(splitTool, &ini);
    plp.cutRedundantPage();//创建去重网页库
    plp.invertedIndex();//创建倒排索引库

}